package com.offcn.sellergoods.feign;

import com.offcn.entity.Result;
import com.offcn.sellergoods.config.FeignConfig;
import com.offcn.sellergoods.entity.GoodsEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "SELLERGOODS",configuration = FeignConfig.class)
public interface GoodsFeign {

    @GetMapping("/goods/{goodsId}")
    public Result<GoodsEntity> findById(@PathVariable Long goodsId);
}
